package com.lzk.pet.service;

import com.lzk.basic.service.IBaseService;
import com.lzk.basic.util.PageList;
import com.lzk.pet.domain.SearchMasterMsg;
import com.lzk.pet.dto.AcceptDto;
import com.lzk.pet.query.SearchMasterMsgQuery;

import java.util.Map;


public interface ISearchMasterMsgService extends IBaseService<SearchMasterMsg> {
    /**
     * 寻主消息
     * @param smm
     * @param id
     */
    void publish(SearchMasterMsg smm, Long id);

    /**
     * 待审核
     * @param searchMasterMsgQuery
     * @return
     */
    PageList<SearchMasterMsg> Pending(SearchMasterMsgQuery searchMasterMsgQuery,Long id);

    /**
     * 待处理
     * @param searchMasterMsgQuery
     * @return
     */
    PageList<SearchMasterMsg> handle(SearchMasterMsgQuery searchMasterMsgQuery,Long id);

    /**
     * 拒单
     * @param id
     */
    void reject(Long id);

    /**
     * 接单
     * @param dto
     */
    void accept(AcceptDto dto);
}
